<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var dog = {
            uname: 'keke',
            type: 'alasijia',
            age: 5,
            color: 'brown',
            bark: function () {
                alert('wang~');

            },
            showFilm: function () {
                alert('acting');
            }
        }

        dog.bark();
        dog.showFilm();
        alert(dog.age);
        alert(dog.uname);
        alert(dog.type);
        alert(dog.color);
    </script>
</head>

<body>

</body>

</html>